<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/4
 * Time: 13:47
 */

namespace App\Http\Traits;

/**
 * @SWG\Definition(definition="NewPet", type="object", required={"name"})
 */
trait SwaggerTrait
{
    /**
     *  @SWG\Definition(
     *   definition="Pet",
     *   type="object",
     *   allOf={
     *       @SWG\Schema(ref="#/definitions/NewPet"),
     *       @SWG\Schema(
     *           required={"id"},
     *           @SWG\Property(property="id", format="int64", type="integer")
     *       )
     *   }
     * )
     */

    /**
     *  @SWG\Definition(
     *   definition="ErrorModel",
     *   type="object",
     *   allOf={
     *       @SWG\Schema(ref="#/definitions/NewPet"),
     *       @SWG\Schema(
     *           required={"id"},
     *           @SWG\Property(property="id", format="int64", type="integer")
     *       )
     *   }
     * )
     */
}